package com.mxpio.erp.common.equipment.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.mxpio.erp.common.jpa.policy.BizCodeGeneratorPolicy;
import com.mxpioframework.excel.annotation.Excel;
import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT")
@Schema(description="设备信息")
public class Equipment extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "EQ_CODE_", updatable = false)
	@Generator(policy = BizCodeGeneratorPolicy.class)
	@Schema(description = "设备编号")
	private String eqCode;
	/**设备名称*/
	@Column(name = "EQP_NAME_")
	@Schema(description = "设备名称")
	private String eqpName;
	/**设备编码*/
	@Column(name = "EQP_CODE_")
	@Schema(description = "设备编码")
	private String eqpCode;
	@Column(name = "STATUS_")
	@Dict(dicCode = "ERP_EQUIPMENT_EQP_STATUS")
	@Schema(description = "设备状态")
	private Integer status;


}
